module.exports =function(){
    
    let methods
    let syntax={
         //通过TOKEN获取用户
        tokenUser:"select * from nideshop_account where mobile=? and password=?",

        address:"select * from nideshop_address where user_id=?",

        selectAcctount:"select * from nideshop_account where mobile=? and password=?",

        userCart:"select * from nideshop_shopcart where id=?",

        uuCart:"select * from nideshop_shopcart where uuid=?", 
        // 通过 goods ID获取产品信息
        selectGoods:"select * from nideshop_goods where id=?" ,
        // accountId 查找 订单
        findPay:"select * from customize_pay where accountId=? ",
        // 商品查询
        goods:"SELECT * FROM nideshop_goods WHERE id=?"
    }
    // let additional = {
    //     limit:` limit ${pagesize} offset ${(pagenum-1)*pagesize}`,
    //      desc: `order by orderId desc limit ${limit} offset ${(page-1)*limit} `

    // }



    for(key  in syntax){
        if(key == arguments[0])  methods = syntax[key]
    }
    return methods

}